﻿///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 4.2
// Code is generated on: 
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace VNet.VisiSuite.Dal.DatabaseSpecific
{
	/// <summary>Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
	/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
	internal static class PersistenceInfoProviderSingleton
	{
		#region Class Member Declarations
		private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
		#endregion

		/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
		static PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
		/// <returns>Instance of the PersistenceInfoProvider.</returns>
		public static IPersistenceInfoProvider GetInstance()
		{
			return _providerInstance;
		}
	}

	/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
	internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
	{
		/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
		internal PersistenceInfoProviderCore()
		{
			Init();
		}

		/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
		private void Init()
		{
			this.InitClass(41);
			InitAlarmSettingEntityMappings();
			InitAreaEntityMappings();
			InitAreaShiftEntityMappings();
			InitBraiderProductEntityMappings();
			InitCellEntityMappings();
			InitCellAlarmSettingEntityMappings();
			InitCellShiftEntityMappings();
			InitCellStatusEntityMappings();
			InitDatabaseVersionEntityMappings();
			InitDowntimeButtonEntityMappings();
			InitDrouteEntityMappings();
			InitEmployeeEntityMappings();
			InitEmpOperEntityMappings();
			InitEmpTimeEntityMappings();
			InitFileTimeEntityMappings();
			InitFractionalInchEntityMappings();
			InitHoseSpecEntityMappings();
			InitLaunchApplicationEntityMappings();
			InitOperationEntityMappings();
			InitOperatorEntityMappings();
			InitOperatorAuthEntityMappings();
			InitOschdEntityMappings();
			InitPlantEntityMappings();
			InitProductEntityMappings();
			InitProductionHistoryEntityMappings();
			InitProductionHistoryDowntimeEventEntityMappings();
			InitProductionPlanEntityMappings();
			InitProductionPlanScheduledDowntimeEntityMappings();
			InitProductOperationTimeEntityMappings();
			InitReasonCodeEntityMappings();
			InitRollupDefinitionEntityMappings();
			InitSchdOperEntityMappings();
			InitSchdShipEntityMappings();
			InitScheduleEntityMappings();
			InitScheduleRepeatEntityMappings();
			InitSrouteEntityMappings();
			InitStationEntityMappings();
			InitSyncLogEntityMappings();
			InitTableDataChangeEntityMappings();
			InitUserLoginEntityMappings();
			InitUserLoginHistoryEntityMappings();
		}

		/// <summary>Inits AlarmSettingEntity's mappings</summary>
		private void InitAlarmSettingEntityMappings()
		{
			this.AddElementMapping("AlarmSettingEntity", @"VisiSuite", @"dbo", "AlarmSetting", 11, 0);
			this.AddElementFieldMapping("AlarmSettingEntity", "AlarmSettingId", "AlarmSettingID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AlarmSettingEntity", "AreaId", "AreaID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("AlarmSettingEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("AlarmSettingEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("AlarmSettingEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("AlarmSettingEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("AlarmSettingEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("AlarmSettingEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
			this.AddElementFieldMapping("AlarmSettingEntity", "MinPercentage100Bad", "MinPercentage100Bad", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
			this.AddElementFieldMapping("AlarmSettingEntity", "MinPercentage100Good", "MinPercentage100Good", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 9);
			this.AddElementFieldMapping("AlarmSettingEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 10);
		}

		/// <summary>Inits AreaEntity's mappings</summary>
		private void InitAreaEntityMappings()
		{
			this.AddElementMapping("AreaEntity", @"VisiSuite", @"dbo", "Area", 23, 0);
			this.AddElementFieldMapping("AreaEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AreaEntity", "AreaName", "AreaName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("AreaEntity", "CloseWorkOrderReasonCodeId", "CloseWorkOrderReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("AreaEntity", "ContinuousProcess", "ContinuousProcess", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("AreaEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("AreaEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
			this.AddElementFieldMapping("AreaEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 6);
			this.AddElementFieldMapping("AreaEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("AreaEntity", "GoodReasonCodeId", "GoodReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("AreaEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("AreaEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 10);
			this.AddElementFieldMapping("AreaEntity", "MonthStartDay", "MonthStartDay", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 11);
			this.AddElementFieldMapping("AreaEntity", "NoWorkOrdersReasonCodeId", "NoWorkOrdersReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 12);
			this.AddElementFieldMapping("AreaEntity", "PlannedReasonCodeId", "PlannedReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 13);
			this.AddElementFieldMapping("AreaEntity", "PlantId", "PlantID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("AreaEntity", "ProductionGoal", "ProductionGoal", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 15);
			this.AddElementFieldMapping("AreaEntity", "ProductionMeterLabelFreq", "ProductionMeterLabelFreq", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 16);
			this.AddElementFieldMapping("AreaEntity", "ProductionMeterWidth", "ProductionMeterWidth", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 17);
			this.AddElementFieldMapping("AreaEntity", "ReworkReasonCodeId", "ReworkReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 18);
			this.AddElementFieldMapping("AreaEntity", "ScrapReasonCodeId", "ScrapReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 19);
			this.AddElementFieldMapping("AreaEntity", "ShiftStartReasonCodeId", "ShiftStartReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 20);
			this.AddElementFieldMapping("AreaEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 21);
			this.AddElementFieldMapping("AreaEntity", "WeekStartDay", "WeekStartDay", false, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 22);
		}

		/// <summary>Inits AreaShiftEntity's mappings</summary>
		private void InitAreaShiftEntityMappings()
		{
			this.AddElementMapping("AreaShiftEntity", @"VisiSuite", @"dbo", "AreaShift", 12, 0);
			this.AddElementFieldMapping("AreaShiftEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("AreaShiftEntity", "AreaShiftId", "AreaShiftID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("AreaShiftEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("AreaShiftEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("AreaShiftEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("AreaShiftEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("AreaShiftEntity", "EndTime", "EndTime", false, "Time", 0, 0, 0, false, "", null, typeof(System.TimeSpan), 6);
			this.AddElementFieldMapping("AreaShiftEntity", "Hidden", "Hidden", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("AreaShiftEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("AreaShiftEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 9);
			this.AddElementFieldMapping("AreaShiftEntity", "StartTime", "StartTime", false, "Time", 0, 0, 0, false, "", null, typeof(System.TimeSpan), 10);
			this.AddElementFieldMapping("AreaShiftEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 11);
		}

		/// <summary>Inits BraiderProductEntity's mappings</summary>
		private void InitBraiderProductEntityMappings()
		{
			this.AddElementMapping("BraiderProductEntity", @"VisiSuite", @"dbo", "BraiderProduct", 12, 0);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderNumber", "BraiderNumber", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 0);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderProductId", "BraiderProductID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("BraiderProductEntity", "BraiderType", "BraiderType", false, "NVarChar", 5, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("BraiderProductEntity", "CarrierCount", "CarrierCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
			this.AddElementFieldMapping("BraiderProductEntity", "ClientId", "ClientID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("BraiderProductEntity", "DeckCount", "DeckCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 5);
			this.AddElementFieldMapping("BraiderProductEntity", "FeetPerMinute", "FeetPerMinute", false, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 6);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseCount", "HoseCount", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 7);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseSize", "HoseSize", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 8);
			this.AddElementFieldMapping("BraiderProductEntity", "HoseSpec", "HoseSpec", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 9);
			this.AddElementFieldMapping("BraiderProductEntity", "OperatorId", "OperatorID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("BraiderProductEntity", "Split", "Split", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 11);
		}

		/// <summary>Inits CellEntity's mappings</summary>
		private void InitCellEntityMappings()
		{
			this.AddElementMapping("CellEntity", @"VisiSuite", @"dbo", "Cell", 16, 0);
			this.AddElementFieldMapping("CellEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellEntity", "Assigned", "Assigned", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("CellEntity", "CellId", "CellID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("CellEntity", "CellName", "CellName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("CellEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("CellEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
			this.AddElementFieldMapping("CellEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 6);
			this.AddElementFieldMapping("CellEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("CellEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("CellEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 9);
			this.AddElementFieldMapping("CellEntity", "Operators", "Operators", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 10);
			this.AddElementFieldMapping("CellEntity", "Password", "Password", false, "NVarChar", 32, 0, 0, false, "", null, typeof(System.String), 11);
			this.AddElementFieldMapping("CellEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 12);
			this.AddElementFieldMapping("CellEntity", "VisiCentralColumn", "VisiCentralColumn", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 13);
			this.AddElementFieldMapping("CellEntity", "VisiCentralGroup", "VisiCentralGroup", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 14);
			this.AddElementFieldMapping("CellEntity", "VisiCentralRow", "VisiCentralRow", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 15);
		}

		/// <summary>Inits CellAlarmSettingEntity's mappings</summary>
		private void InitCellAlarmSettingEntityMappings()
		{
			this.AddElementMapping("CellAlarmSettingEntity", @"VisiSuite", @"dbo", "CellAlarmSetting", 11, 0);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CellAlarmSettingId", "CellAlarmSettingID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "MinPercentage100Bad", "MinPercentage100Bad", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 8);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "MinPercentage100Good", "MinPercentage100Good", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 9);
			this.AddElementFieldMapping("CellAlarmSettingEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 10);
		}

		/// <summary>Inits CellShiftEntity's mappings</summary>
		private void InitCellShiftEntityMappings()
		{
			this.AddElementMapping("CellShiftEntity", @"VisiSuite", @"dbo", "CellShift", 6, 0);
			this.AddElementFieldMapping("CellShiftEntity", "AreaShiftId", "AreaShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellShiftEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellShiftEntity", "CellShiftId", "CellShiftID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("CellShiftEntity", "ClientId", "ClientID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("CellShiftEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("CellShiftEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
		}

		/// <summary>Inits CellStatusEntity's mappings</summary>
		private void InitCellStatusEntityMappings()
		{
			this.AddElementMapping("CellStatusEntity", @"VisiSuite", @"dbo", "CellStatus", 9, 0);
			this.AddElementFieldMapping("CellStatusEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("CellStatusEntity", "CellStatusId", "CellStatusID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("CellStatusEntity", "EventTime", "EventTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("CellStatusEntity", "Flags", "Flags", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("CellStatusEntity", "LastSync", "LastSync", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("CellStatusEntity", "Offline", "Offline", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("CellStatusEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("CellStatusEntity", "Status", "Status", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("CellStatusEntity", "TimeStamp", "TimeStamp", false, "Binary", 8, 0, 0, false, "", null, typeof(System.Byte[]), 8);
		}

		/// <summary>Inits DatabaseVersionEntity's mappings</summary>
		private void InitDatabaseVersionEntityMappings()
		{
			this.AddElementMapping("DatabaseVersionEntity", @"VisiSuite", @"dbo", "DatabaseVersion", 3, 0);
			this.AddElementFieldMapping("DatabaseVersionEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
			this.AddElementFieldMapping("DatabaseVersionEntity", "DatabaseVersionId", "DatabaseVersionID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("DatabaseVersionEntity", "VersionNumber", "VersionNumber", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
		}

		/// <summary>Inits DowntimeButtonEntity's mappings</summary>
		private void InitDowntimeButtonEntityMappings()
		{
			this.AddElementMapping("DowntimeButtonEntity", @"VisiSuite", @"dbo", "DowntimeButton", 10, 0);
			this.AddElementFieldMapping("DowntimeButtonEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("DowntimeButtonEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("DowntimeButtonEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("DowntimeButtonEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("DowntimeButtonEntity", "DowntimeButtonId", "DowntimeButtonID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("DowntimeButtonEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("DowntimeButtonEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
			this.AddElementFieldMapping("DowntimeButtonEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("DowntimeButtonEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("DowntimeButtonEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 9);
		}

		/// <summary>Inits DrouteEntity's mappings</summary>
		private void InitDrouteEntityMappings()
		{
			this.AddElementMapping("DrouteEntity", @"ProfitFab", @"dbo", "DRoute", 3, 0);
			this.AddElementFieldMapping("DrouteEntity", "Description", "Description", true, "NVarChar", 60, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("DrouteEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("DrouteEntity", "DrouteId", "DRouteId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
		}

		/// <summary>Inits EmployeeEntity's mappings</summary>
		private void InitEmployeeEntityMappings()
		{
			this.AddElementMapping("EmployeeEntity", @"ProfitFab", @"dbo", "Employee", 6, 0);
			this.AddElementFieldMapping("EmployeeEntity", "EmployeeId", "EmployeeId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("EmployeeEntity", "EmpNum", "EmpNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("EmployeeEntity", "Id", "Id", true, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("EmployeeEntity", "Name", "Name", true, "NVarChar", 128, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("EmployeeEntity", "Shift", "Shift", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("EmployeeEntity", "Title", "Title", true, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 5);
		}

		/// <summary>Inits EmpOperEntity's mappings</summary>
		private void InitEmpOperEntityMappings()
		{
			this.AddElementMapping("EmpOperEntity", @"ProfitFab", @"dbo", "EmpOper", 3, 0);
			this.AddElementFieldMapping("EmpOperEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("EmpOperEntity", "EmpNum", "EmpNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("EmpOperEntity", "EmpOperId", "EmpOperId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
		}

		/// <summary>Inits EmpTimeEntity's mappings</summary>
		private void InitEmpTimeEntityMappings()
		{
			this.AddElementMapping("EmpTimeEntity", @"ProfitFab", @"dbo", "EmpTime", 7, 0);
			this.AddElementFieldMapping("EmpTimeEntity", "DateIn", "DateIn", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
			this.AddElementFieldMapping("EmpTimeEntity", "DateOut", "DateOut", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("EmpTimeEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("EmpTimeEntity", "EmpNum", "EmpNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("EmpTimeEntity", "EmpTimeId", "EmpTimeId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("EmpTimeEntity", "Status", "Status", true, "NVarChar", 5, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("EmpTimeEntity", "StnNum", "StnNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
		}

		/// <summary>Inits FileTimeEntity's mappings</summary>
		private void InitFileTimeEntityMappings()
		{
			this.AddElementMapping("FileTimeEntity", @"ProfitFab", @"dbo", "FileTime", 2, 0);
			this.AddElementFieldMapping("FileTimeEntity", "FileName", "FileName", false, "NVarChar", 256, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("FileTimeEntity", "FileTime", "FileTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
		}

		/// <summary>Inits FractionalInchEntity's mappings</summary>
		private void InitFractionalInchEntityMappings()
		{
			this.AddElementMapping("FractionalInchEntity", @"VisiSuite", @"dbo", "FractionalInches", 4, 0);
			this.AddElementFieldMapping("FractionalInchEntity", "Description", "Description", false, "NVarChar", 8, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("FractionalInchEntity", "FractionalInchesId", "FractionalInchesID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("FractionalInchEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 2);
			this.AddElementFieldMapping("FractionalInchEntity", "Value", "Value", false, "Decimal", 0, 8, 5, false, "", null, typeof(System.Decimal), 3);
		}

		/// <summary>Inits HoseSpecEntity's mappings</summary>
		private void InitHoseSpecEntityMappings()
		{
			this.AddElementMapping("HoseSpecEntity", @"VisiSuite", @"dbo", "HoseSpec", 8, 0);
			this.AddElementFieldMapping("HoseSpecEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMin", "FtPerMin", false, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 1);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMinAlt", "FtPerMinAlt", true, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 2);
			this.AddElementFieldMapping("HoseSpecEntity", "FtPerMinRb2", "FtPerMInRB2", true, "Decimal", 0, 8, 2, false, "", null, typeof(System.Decimal), 3);
			this.AddElementFieldMapping("HoseSpecEntity", "HoseSpecId", "HoseSpecID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("HoseSpecEntity", "Size", "Size", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("HoseSpecEntity", "Spec", "Spec", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 6);
			this.AddElementFieldMapping("HoseSpecEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits LaunchApplicationEntity's mappings</summary>
		private void InitLaunchApplicationEntityMappings()
		{
			this.AddElementMapping("LaunchApplicationEntity", @"VisiSuite", @"dbo", "LaunchApplication", 12, 0);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Application", "Application", false, "NVarChar", 128, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("LaunchApplicationEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Arguments", "Arguments", true, "NVarChar", 128, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("LaunchApplicationEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("LaunchApplicationEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("LaunchApplicationEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 6);
			this.AddElementFieldMapping("LaunchApplicationEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("LaunchApplicationEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 8);
			this.AddElementFieldMapping("LaunchApplicationEntity", "LaunchApplicationId", "LaunchApplicationID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("LaunchApplicationEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("LaunchApplicationEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 11);
		}

		/// <summary>Inits OperationEntity's mappings</summary>
		private void InitOperationEntityMappings()
		{
			this.AddElementMapping("OperationEntity", @"VisiSuite", @"dbo", "Operation", 5, 0);
			this.AddElementFieldMapping("OperationEntity", "Description", "Description", false, "NVarChar", 50, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("OperationEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("OperationEntity", "ExternalId", "ExternalID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("OperationEntity", "OperationId", "OperationID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("OperationEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 4);
		}

		/// <summary>Inits OperatorEntity's mappings</summary>
		private void InitOperatorEntityMappings()
		{
			this.AddElementMapping("OperatorEntity", @"VisiSuite", @"dbo", "Operator", 8, 0);
			this.AddElementFieldMapping("OperatorEntity", "Active", "Active", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 0);
			this.AddElementFieldMapping("OperatorEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("OperatorEntity", "EmployeeCode", "EmployeeCode", false, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("OperatorEntity", "ExternalId", "ExternalID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("OperatorEntity", "FirstName", "FirstName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("OperatorEntity", "LastName", "LastName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("OperatorEntity", "OperatorId", "OperatorID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("OperatorEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 7);
		}

		/// <summary>Inits OperatorAuthEntity's mappings</summary>
		private void InitOperatorAuthEntityMappings()
		{
			this.AddElementMapping("OperatorAuthEntity", @"VisiSuite", @"dbo", "OperatorAuth", 3, 0);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperatorAuthId", "OperatorAuthId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("OperatorAuthEntity", "OperatorId", "OperatorID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
		}

		/// <summary>Inits OschdEntity's mappings</summary>
		private void InitOschdEntityMappings()
		{
			this.AddElementMapping("OschdEntity", @"ProfitFab", @"dbo", "OSchd", 6, 0);
			this.AddElementFieldMapping("OschdEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("OschdEntity", "OschdId", "OSchdId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("OschdEntity", "Pass", "Pass", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 2);
			this.AddElementFieldMapping("OschdEntity", "SchNum", "SchNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("OschdEntity", "SrtNum", "SrtNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("OschdEntity", "StnNum", "StnNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
		}

		/// <summary>Inits PlantEntity's mappings</summary>
		private void InitPlantEntityMappings()
		{
			this.AddElementMapping("PlantEntity", @"VisiSuite", @"dbo", "Plant", 10, 0);
			this.AddElementFieldMapping("PlantEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("PlantEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("PlantEntity", "DateFormat", "DateFormat", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("PlantEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("PlantEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("PlantEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("PlantEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
			this.AddElementFieldMapping("PlantEntity", "PlantId", "PlantID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("PlantEntity", "PlantName", "PlantName", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 8);
			this.AddElementFieldMapping("PlantEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 9);
		}

		/// <summary>Inits ProductEntity's mappings</summary>
		private void InitProductEntityMappings()
		{
			this.AddElementMapping("ProductEntity", @"VisiSuite", @"dbo", "Product", 12, 0);
			this.AddElementFieldMapping("ProductEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductEntity", "Description", "Description", true, "NVarChar", 80, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("ProductEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("ProductEntity", "ExternalId", "ExternalID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("ProductEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
			this.AddElementFieldMapping("ProductEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductEntity", "RefId", "RefId", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductEntity", "Revision", "Revision", true, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 9);
			this.AddElementFieldMapping("ProductEntity", "Sku", "SKU", false, "NVarChar", 80, 0, 0, false, "", null, typeof(System.String), 10);
			this.AddElementFieldMapping("ProductEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 11);
		}

		/// <summary>Inits ProductionHistoryEntity's mappings</summary>
		private void InitProductionHistoryEntityMappings()
		{
			this.AddElementMapping("ProductionHistoryEntity", @"VisiSuite", @"dbo", "ProductionHistory", 13, 0);
			this.AddElementFieldMapping("ProductionHistoryEntity", "BraiderProductId", "BraiderProductID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionHistoryEntity", "CellShiftId", "CellShiftID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ClientId", "ClientID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionHistoryEntity", "DowntimeAckTime", "DowntimeAckTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("ProductionHistoryEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("ProductionHistoryEntity", "OperatorId", "OperatorID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductionHistoryEntity", "Operators", "Operators", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ProductionHistoryId", "ProductionHistoryID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ProductionPlanId", "ProductionPlanID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductionHistoryEntity", "ReasonCodeId", "ReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionHistoryEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 10);
			this.AddElementFieldMapping("ProductionHistoryEntity", "VisiBoxKey", "VisiBoxKey", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 11);
			this.AddElementFieldMapping("ProductionHistoryEntity", "WorkContent", "WorkContent", true, "Decimal", 0, 10, 2, false, "", null, typeof(System.Decimal), 12);
		}

		/// <summary>Inits ProductionHistoryDowntimeEventEntity's mappings</summary>
		private void InitProductionHistoryDowntimeEventEntityMappings()
		{
			this.AddElementMapping("ProductionHistoryDowntimeEventEntity", @"VisiSuite", @"dbo", "ProductionHistoryDowntimeEvent", 7, 0);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ClientId", "ClientID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "EventTime", "EventTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ProductionHistoryDowntimeEventId", "ProductionHistoryDowntimeEventID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ProductionHistoryId", "ProductionHistoryID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "ReasonCodeId", "ReasonCodeID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 5);
			this.AddElementFieldMapping("ProductionHistoryDowntimeEventEntity", "VisiBoxKey", "VisiBoxKey", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
		}

		/// <summary>Inits ProductionPlanEntity's mappings</summary>
		private void InitProductionPlanEntityMappings()
		{
			this.AddElementMapping("ProductionPlanEntity", @"VisiSuite", @"dbo", "ProductionPlan", 21, 0);
			this.AddElementFieldMapping("ProductionPlanEntity", "Actual", "Actual", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionPlanEntity", "ActualDate", "ActualDate", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionPlanEntity", "BraiderProductId", "BraiderProductID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionPlanEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductionPlanEntity", "Closed", "Closed", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("ProductionPlanEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductionPlanEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 6);
			this.AddElementFieldMapping("ProductionPlanEntity", "DueDate", "DueDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
			this.AddElementFieldMapping("ProductionPlanEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 8);
			this.AddElementFieldMapping("ProductionPlanEntity", "ExternalId", "ExternalID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionPlanEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("ProductionPlanEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 11);
			this.AddElementFieldMapping("ProductionPlanEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 12);
			this.AddElementFieldMapping("ProductionPlanEntity", "OperationPass", "OperationPass", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 13);
			this.AddElementFieldMapping("ProductionPlanEntity", "Planned", "Planned", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("ProductionPlanEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 15);
			this.AddElementFieldMapping("ProductionPlanEntity", "ProductionPlanId", "ProductionPlanID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 16);
			this.AddElementFieldMapping("ProductionPlanEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 17);
			this.AddElementFieldMapping("ProductionPlanEntity", "StationId", "StationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 18);
			this.AddElementFieldMapping("ProductionPlanEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 19);
			this.AddElementFieldMapping("ProductionPlanEntity", "WorkOrder", "WorkOrder", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 20);
		}

		/// <summary>Inits ProductionPlanScheduledDowntimeEntity's mappings</summary>
		private void InitProductionPlanScheduledDowntimeEntityMappings()
		{
			this.AddElementMapping("ProductionPlanScheduledDowntimeEntity", @"VisiSuite", @"dbo", "ProductionPlanScheduledDowntime", 11, 0);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "DownTime", "Downtime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 4);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "OccursBefore", "OccursBefore", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "ProductionPlanId", "ProductionPlanID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "ProductionPlanScheduledDowntimeId", "ProductionPlanScheduledDowntimeID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductionPlanScheduledDowntimeEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 10);
		}

		/// <summary>Inits ProductOperationTimeEntity's mappings</summary>
		private void InitProductOperationTimeEntityMappings()
		{
			this.AddElementMapping("ProductOperationTimeEntity", @"VisiSuite", @"dbo", "ProductOperationTime", 11, 0);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "CycleTime", "CycleTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 1);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "LoadUnloadTime", "LoadUnloadTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "OperationId", "OperationID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "OperationPass", "OperationPass", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "PartTime", "PartTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "ProductId", "ProductID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "ProductOperationTimeId", "ProductOperationTimeID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "Rate", "Rate", false, "Decimal", 0, 10, 2, false, "", null, typeof(System.Decimal), 8);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "SetupTime", "SetupTime", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("ProductOperationTimeEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 10);
		}

		/// <summary>Inits ReasonCodeEntity's mappings</summary>
		private void InitReasonCodeEntityMappings()
		{
			this.AddElementMapping("ReasonCodeEntity", @"VisiSuite", @"dbo", "ReasonCode", 21, 0);
			this.AddElementFieldMapping("ReasonCodeEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ReasonCodeEntity", "Category", "Category", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 1);
			this.AddElementFieldMapping("ReasonCodeEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("ReasonCodeEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("ReasonCodeEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("ReasonCodeEntity", "DisplayInDowntimeChart", "DisplayInDowntimeChart", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("ReasonCodeEntity", "FlashDelay", "FlashDelay", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 6);
			this.AddElementFieldMapping("ReasonCodeEntity", "HideChildren", "HideChildren", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreInOeeCalc", "IgnoreInOeeCalc", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 8);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreInWaitingCalc", "IgnoreInWaitingCalc", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 9);
			this.AddElementFieldMapping("ReasonCodeEntity", "IgnoreVisiBoxEvents", "IgnoreVisiBoxEvents", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 10);
			this.AddElementFieldMapping("ReasonCodeEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 11);
			this.AddElementFieldMapping("ReasonCodeEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 12);
			this.AddElementFieldMapping("ReasonCodeEntity", "Level", "Level", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 13);
			this.AddElementFieldMapping("ReasonCodeEntity", "LinkId", "LinkID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 14);
			this.AddElementFieldMapping("ReasonCodeEntity", "ParentId", "ParentID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 15);
			this.AddElementFieldMapping("ReasonCodeEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 16);
			this.AddElementFieldMapping("ReasonCodeEntity", "RollupDefinitionId", "RollupDefinitionID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 17);
			this.AddElementFieldMapping("ReasonCodeEntity", "Scrap", "Scrap", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 18);
			this.AddElementFieldMapping("ReasonCodeEntity", "ShopClockEvent", "ShopClockEvent", false, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 19);
			this.AddElementFieldMapping("ReasonCodeEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 20);
		}

		/// <summary>Inits RollupDefinitionEntity's mappings</summary>
		private void InitRollupDefinitionEntityMappings()
		{
			this.AddElementMapping("RollupDefinitionEntity", @"VisiSuite", @"dbo", "RollupDefinition", 12, 0);
			this.AddElementFieldMapping("RollupDefinitionEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("RollupDefinitionEntity", "Color", "Color", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("RollupDefinitionEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("RollupDefinitionEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("RollupDefinitionEntity", "Description", "Description", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("RollupDefinitionEntity", "FlashingTimeout", "FlashingTimeout", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
			this.AddElementFieldMapping("RollupDefinitionEntity", "FontColor", "FontColor", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 6);
			this.AddElementFieldMapping("RollupDefinitionEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("RollupDefinitionEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 8);
			this.AddElementFieldMapping("RollupDefinitionEntity", "RollupDefinitionId", "RollupDefinitionID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 9);
			this.AddElementFieldMapping("RollupDefinitionEntity", "SortOrder", "SortOrder", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("RollupDefinitionEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 11);
		}

		/// <summary>Inits SchdOperEntity's mappings</summary>
		private void InitSchdOperEntityMappings()
		{
			this.AddElementMapping("SchdOperEntity", @"ProfitFab", @"dbo", "SchdOper", 5, 0);
			this.AddElementFieldMapping("SchdOperEntity", "JobNo", "JobNo", true, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("SchdOperEntity", "Pass", "Pass", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 1);
			this.AddElementFieldMapping("SchdOperEntity", "SchdOperId", "SchdOperId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("SchdOperEntity", "StartDate", "StartDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("SchdOperEntity", "StnNum", "StnNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
		}

		/// <summary>Inits SchdShipEntity's mappings</summary>
		private void InitSchdShipEntityMappings()
		{
			this.AddElementMapping("SchdShipEntity", @"ProfitFab", @"dbo", "SchdShip", 8, 0);
			this.AddElementFieldMapping("SchdShipEntity", "ActProdQty", "ActProdQty", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("SchdShipEntity", "Description", "Description", true, "NVarChar", 50, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("SchdShipEntity", "JobNo", "JobNo", true, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("SchdShipEntity", "PartNo", "PartNo", true, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("SchdShipEntity", "PartNum", "PartNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("SchdShipEntity", "Rev", "Rev", true, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("SchdShipEntity", "SchdShipId", "SchdShipId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("SchdShipEntity", "SchNum", "SchNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 7);
		}

		/// <summary>Inits ScheduleEntity's mappings</summary>
		private void InitScheduleEntityMappings()
		{
			this.AddElementMapping("ScheduleEntity", @"VisiSuite", @"dbo", "Schedule", 11, 0);
			this.AddElementFieldMapping("ScheduleEntity", "AreaId", "AreaID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("ScheduleEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("ScheduleEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("ScheduleEntity", "EndTime", "EndTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("ScheduleEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("ScheduleEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 5);
			this.AddElementFieldMapping("ScheduleEntity", "ReasonCodeId", "ReasonCodeID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("ScheduleEntity", "ScheduleId", "ScheduleID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 7);
			this.AddElementFieldMapping("ScheduleEntity", "ScheduleRepeatId", "ScheduleRepeatID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("ScheduleEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 9);
			this.AddElementFieldMapping("ScheduleEntity", "Subject", "Subject", false, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 10);
		}

		/// <summary>Inits ScheduleRepeatEntity's mappings</summary>
		private void InitScheduleRepeatEntityMappings()
		{
			this.AddElementMapping("ScheduleRepeatEntity", @"VisiSuite", @"dbo", "ScheduleRepeat", 15, 0);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "EndDate", "EndDate", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 0);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "EndTime", "EndTime", true, "Time", 0, 0, 0, false, "", null, typeof(System.TimeSpan), 1);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsDayOfMonth", "IsDayOfMonth", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 2);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEveryFriday", "IsEveryFriday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEveryMonday", "IsEveryMonday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 4);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEverySaturday", "IsEverySaturday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 5);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEverySunday", "IsEverySunday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 6);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEveryThursday", "IsEveryThursday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 7);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEveryTuesday", "IsEveryTuesday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 8);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsEveryWednesday", "IsEveryWednesday", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 9);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "IsOneTime", "IsOneTime", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 10);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "ScheduleRepeatId", "ScheduleRepeatID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 11);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "StartDate", "StartDate", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 12);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "StartTime", "StartTime", true, "Time", 0, 0, 0, false, "", null, typeof(System.TimeSpan), 13);
			this.AddElementFieldMapping("ScheduleRepeatEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 14);
		}

		/// <summary>Inits SrouteEntity's mappings</summary>
		private void InitSrouteEntityMappings()
		{
			this.AddElementMapping("SrouteEntity", @"ProfitFab", @"dbo", "SRoute", 10, 0);
			this.AddElementFieldMapping("SrouteEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("SrouteEntity", "PartTime", "PartTime", true, "Float", 0, 38, 0, false, "", null, typeof(System.Double), 1);
			this.AddElementFieldMapping("SrouteEntity", "Pass", "Pass", true, "TinyInt", 0, 3, 0, false, "", null, typeof(System.Byte), 2);
			this.AddElementFieldMapping("SrouteEntity", "Pptime1", "PPTime1", true, "Float", 0, 38, 0, false, "", null, typeof(System.Double), 3);
			this.AddElementFieldMapping("SrouteEntity", "Pptime2", "PPTime2", true, "Float", 0, 38, 0, false, "", null, typeof(System.Double), 4);
			this.AddElementFieldMapping("SrouteEntity", "Rate", "Rate", false, "Decimal", 0, 10, 2, false, "", null, typeof(System.Decimal), 5);
			this.AddElementFieldMapping("SrouteEntity", "SchNum", "SchNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("SrouteEntity", "SetupTime", "SetupTime", true, "Float", 0, 38, 0, false, "", null, typeof(System.Double), 7);
			this.AddElementFieldMapping("SrouteEntity", "SrouteId", "SRouteId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 8);
			this.AddElementFieldMapping("SrouteEntity", "Status", "Status", true, "NChar", 1, 0, 0, false, "", null, typeof(System.String), 9);
		}

		/// <summary>Inits StationEntity's mappings</summary>
		private void InitStationEntityMappings()
		{
			this.AddElementMapping("StationEntity", @"ProfitFab", @"dbo", "Station", 4, 0);
			this.AddElementFieldMapping("StationEntity", "DroNum", "DroNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("StationEntity", "Id", "Id", true, "NVarChar", 10, 0, 0, false, "", null, typeof(System.String), 1);
			this.AddElementFieldMapping("StationEntity", "PkId", "PkId", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2);
			this.AddElementFieldMapping("StationEntity", "StnNum", "StnNum", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 3);
		}

		/// <summary>Inits SyncLogEntity's mappings</summary>
		private void InitSyncLogEntityMappings()
		{
			this.AddElementMapping("SyncLogEntity", @"VisiSuite", @"dbo", "SyncLog", 6, 0);
			this.AddElementFieldMapping("SyncLogEntity", "CellId", "CellID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("SyncLogEntity", "EndTime", "EndTime", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("SyncLogEntity", "ErrorMessage", "ErrorMessage", true, "NVarChar", 2048, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("SyncLogEntity", "StartTime", "StartTime", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 3);
			this.AddElementFieldMapping("SyncLogEntity", "Status", "Status", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 4);
			this.AddElementFieldMapping("SyncLogEntity", "SyncLogId", "SyncLogID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 5);
		}

		/// <summary>Inits TableDataChangeEntity's mappings</summary>
		private void InitTableDataChangeEntityMappings()
		{
			this.AddElementMapping("TableDataChangeEntity", @"VisiSuite", @"dbo", "TableDataChange", 6, 0);
			this.AddElementFieldMapping("TableDataChangeEntity", "AreaId", "AreaID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("TableDataChangeEntity", "CellId", "CellID", true, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 1);
			this.AddElementFieldMapping("TableDataChangeEntity", "LastChanged", "LastChanged", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("TableDataChangeEntity", "TableDataChangeId", "TableDataChangeID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 3);
			this.AddElementFieldMapping("TableDataChangeEntity", "TableName", "TableName", false, "NVarChar", 30, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("TableDataChangeEntity", "TimeStamp", "TImeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 5);
		}

		/// <summary>Inits UserLoginEntity's mappings</summary>
		private void InitUserLoginEntityMappings()
		{
			this.AddElementMapping("UserLoginEntity", @"VisiSuite", @"dbo", "UserLogin", 13, 0);
			this.AddElementFieldMapping("UserLoginEntity", "CreatedBy", "CreatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 0);
			this.AddElementFieldMapping("UserLoginEntity", "CreatedDate", "CreatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("UserLoginEntity", "Email", "Email", true, "NVarChar", 40, 0, 0, false, "", null, typeof(System.String), 2);
			this.AddElementFieldMapping("UserLoginEntity", "Enabled", "Enabled", false, "Bit", 0, 0, 0, false, "", null, typeof(System.Boolean), 3);
			this.AddElementFieldMapping("UserLoginEntity", "FirstName", "FirstName", false, "NVarChar", 30, 0, 0, false, "", null, typeof(System.String), 4);
			this.AddElementFieldMapping("UserLoginEntity", "LastName", "LastName", false, "NVarChar", 30, 0, 0, false, "", null, typeof(System.String), 5);
			this.AddElementFieldMapping("UserLoginEntity", "LastUpdatedBy", "LastUpdatedBy", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 6);
			this.AddElementFieldMapping("UserLoginEntity", "LastUpdatedDate", "LastUpdatedDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 7);
			this.AddElementFieldMapping("UserLoginEntity", "Login", "Login", false, "NVarChar", 32, 0, 0, false, "", null, typeof(System.String), 8);
			this.AddElementFieldMapping("UserLoginEntity", "Password", "Password", false, "NVarChar", 256, 0, 0, false, "", null, typeof(System.String), 9);
			this.AddElementFieldMapping("UserLoginEntity", "Permission", "Permission", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 10);
			this.AddElementFieldMapping("UserLoginEntity", "TimeStamp", "TimeStamp", false, "Timestamp", 2147483647, 0, 0, false, "", null, typeof(System.Byte[]), 11);
			this.AddElementFieldMapping("UserLoginEntity", "UserLoginId", "UserLoginID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 12);
		}

		/// <summary>Inits UserLoginHistoryEntity's mappings</summary>
		private void InitUserLoginHistoryEntityMappings()
		{
			this.AddElementMapping("UserLoginHistoryEntity", @"VisiSuite", @"dbo", "UserLoginHistory", 6, 0);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "Ipaddress", "IPAddress", false, "NVarChar", 20, 0, 0, false, "", null, typeof(System.String), 0);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "LoginDate", "LoginDate", false, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 1);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "LogoutDate", "LogoutDate", true, "DateTime", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "Token", "Token", false, "NVarChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "UserLoginHistoryId", "UserLoginHistoryID", false, "Int", 0, 10, 0, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 4);
			this.AddElementFieldMapping("UserLoginHistoryEntity", "UserLoginId", "UserLoginID", false, "Int", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
		}

	}
}
